using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using emp.IDAL;
using System.Data;
using emp.Model.SysManage;

namespace emp.BLL
{
   public  class BCity
    {
       public int UpdateSUT(UserInfo fInfo)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.UpdateSUT(fInfo);
       }
       public bool DeleteCi(string user_uid, string pro)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.DeleteCi(user_uid, pro);
       }

       public bool Delete(string SUC_UID)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.Delete(SUC_UID);
       }

       public IList getCityByPve(string pveid, string SUC_USER_UID)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getCityByPve(pveid, SUC_USER_UID);
       }
       public int Insert(emp.Model.SYSTEM_USER_CITY suc)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.Insert(suc);
       }
       public IList getCityByPve(string pveid)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getCityByPve(pveid);
       }
       public IList getSUC(string[] tmre)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getSUC(tmre);
       }
       public IList getPVEById(string id)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getPVEById(id);
       }

        public IList getPVEByName(string name)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getPVEByName(name);
       }


       public DataTable getDt(string sqlstr)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getDt(sqlstr);
       }


       public int Insert(UserInfo fInfo)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.Insert(fInfo);
       }

       public DataTable getSYSTEM_USER_CITY()
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getSYSTEM_USER_CITY();
       }

       public IList getRegionList(string name)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getRegionList(name);
       }
       public IList getCityList(int pre_id)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getCityList(pre_id);
       }
       public void getCityDel(int city_id)
       {
           ICity dal = emp.DALFactory.City.Creater();
           dal.getCityDel(city_id);
       }
       public void getCityAdd(int pve_id, string cityname)
       {
           ICity dal = emp.DALFactory.City.Creater();
           dal.getCityAdd(pve_id, cityname);
       }
       public int getCityIsExit(int pve_id, string cityname)
       {
           ICity dal = emp.DALFactory.City.Creater();
           return dal.getCityIsExit( pve_id , cityname);
       }
       public void getQuestAnswerDel(int cityuid)
       {
           ICity dal = emp.DALFactory.City.Creater();
           dal.getQuestAnswerDel(cityuid);
       }
       public void getQuestAnswerAdd(string cityname)
       {
           ICity dal = emp.DALFactory.City.Creater();
           dal.getQuestAnswerAdd(cityname);
       }
    }
}
